package com.tezign.intelligence.mini.dam.aifamilyconsultant.service.impl;

import com.tezign.intelligence.mini.dam.aifamilyconsultant.entity.FamilyMember;
import com.tezign.intelligence.mini.dam.aifamilyconsultant.mapper.FamilyMemberMapper;
import com.tezign.intelligence.mini.dam.aifamilyconsultant.service.IFamilyMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 家庭成员信息 服务实现类
 * </p>
 *
 * @author six
 * @since 2024-11-16
 */
@Service
public class FamilyMemberServiceImpl extends ServiceImpl<FamilyMemberMapper, FamilyMember> implements IFamilyMemberService {

    @Override
    public List<FamilyMember> listByUserIds(List<Long> userIds) {
        return lambdaQuery().in(FamilyMember::getUserId, userIds).list();
    }
}
